{% extends 'configmanager/__base__.html' %}
{% block title %}报警管理 | {% endblock %}
{% block search_notice %}请输入 报警实例{% endblock %}
{% block content %}

    <div id="whole" class="container-fluid table-responsive">
        {% if alarm_list %}
            <table class="table table-striped table-hover table-condensed">
                <thead>
                <tr>
                    <th>告警规则名称</th>
                    <th>告警产品名称</th>
                    <th>告警时间</th>
                    <th>告警值</th>
                    <th>告警实例名称</th>
                    <th>监控项名称</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {% for alarm in alarm_list %}
                    <tr>
                        <td>{{ alarm.name }}</td>
                        <td>{{ alarm.namespace }}</td>
                        <td>{{ alarm.alarm_time }}</td>
                        <td>{{ alarm.value }}</td>
                        <td>{{ alarm.instance_name }}</td>
                        <td>{{ alarm.metric_name }}</td>
                        <td></td>
                    </tr>
                {% endfor %}
                </tbody>
            </table>
        {% else %}
            <p>No Sites are available.</p>
        {% endif %}

    </div>

{% endblock %}
